package com.final_project.zombiemenace.model;

public class Circle {
	private float radius;
	private float centerX;
	private float centerY;

	public Circle() {
		setRadius(0);
		setCenterX(0);
		setCenterY(0);
	}

	public Circle(float radius, float centerX, float centerY) {
		this.radius = radius;
		this.centerX = centerX;
		this.centerY = centerY;
	}

	public void setRadius(float radius) {
		this.radius = radius;
	}

	public void setCenterX(float centerX) {
		this.centerX = centerX;
	}

	public void setCenterY(float centerY) {
		this.centerY = centerY;
	}

	public float getRadius() {
		return radius;
	}

	public float getCenterX() {
		return centerX;
	}

	public float getCenterY() {
		return centerY;
	}

	public static float calculateDistanceBetweenPoints(float pointOneX,
			float pointOneY, float pointTwoX, float pointTwoY) {
		return (float) Math.sqrt(Math.pow((pointTwoX - pointOneX), 2)
				+ Math.pow((pointTwoY - pointOneY), 2));
	}
}
